.TH "Scene" 3 "11 Jun 2010" "Version Core 1.0" "Computer Graphics" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Scene \- 
.SH SYNOPSIS
.br
.PP
\fC#include <Scene.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBScene\fP (\fBCamera\fP *cam)"
.br
.ti -1c
.RI "\fB~Scene\fP ()"
.br
.ti -1c
.RI "\fBCamera\fP * \fBget_cam\fP ()"
.br
.RI "\fIGet the \fBCamera\fP. \fP"
.ti -1c
.RI "vector< \fBObject3D\fP * > \fBget_objects\fP ()"
.br
.RI "\fIGet the objects. \fP"
.ti -1c
.RI "void \fBset_state\fP (\fBTState\fP st)"
.br
.RI "\fISet the operation mode. \fP"
.ti -1c
.RI "\fBTState\fP \fBget_state\fP ()"
.br
.RI "\fIGet the operation mode. \fP"
.ti -1c
.RI "void \fBimportar\fP (char *ruta)"
.br
.ti -1c
.RI "GLuint \fBadd_object\fP (\fBObject3D\fP *o)"
.br
.RI "\fIAdd a new object to scene. \fP"
.ti -1c
.RI "void \fBdelete_object\fP (GLuint n)"
.br
.RI "\fIDelete object n from scene. \fP"
.ti -1c
.RI "GLuint \fBselect_all\fP ()"
.br
.RI "\fISelect all objects. \fP"
.ti -1c
.RI "void \fBdeselect_all\fP ()"
.br
.RI "\fIDeselect all objects. \fP"
.ti -1c
.RI "GLuint \fBselect_inverse\fP ()"
.br
.RI "\fIMake inverse selection. \fP"
.ti -1c
.RI "GLuint \fBselect_object\fP (GLuint n)"
.br
.RI "\fISelect n'th object. \fP"
.ti -1c
.RI "void \fBdeselect_object\fP (GLuint n)"
.br
.RI "\fIDeselect n'th object. \fP"
.ti -1c
.RI "\fBTState\fP \fBget_state_i\fP (GLuint n)"
.br
.RI "\fIState of i-object. \fP"
.ti -1c
.RI "\fBTriangle\fP * \fBedit_face\fP (GLuint n_obj, GLuint n_triang)"
.br
.RI "\fIEdit a face of an object. \fP"
.ti -1c
.RI "GLuint \fBget_n_selected_objects\fP ()"
.br
.RI "\fIGet number of selected objects. \fP"
.ti -1c
.RI "vector< GLuint > \fBget_selected_objects\fP ()"
.br
.RI "\fIGet the selected objects indexes. \fP"
.ti -1c
.RI "GLuint \fBedit_object\fP (GLuint n)"
.br
.RI "\fIEdit n'th object. \fP"
.ti -1c
.RI "void \fBdont_edit\fP ()"
.br
.ti -1c
.RI "void \fBdont_edit_face\fP ()"
.br
.ti -1c
.RI "void \fBmove\fP (\fBVertex3D\fP \fBpos\fP)"
.br
.RI "\fIMove selected objects to determined position. \fP"
.ti -1c
.RI "void \fBscale\fP (GLdouble factor, \fBTAxis\fP axis)"
.br
.RI "\fIScale selected objects. \fP"
.ti -1c
.RI "void \fBrotate\fP (GLdouble degree, \fBTAxis\fP axis)"
.br
.RI "\fIRotate selected objects. \fP"
.ti -1c
.RI "void \fBextrude\fP (\fBTriangle\fP *t, GLdouble dist)"
.br
.RI "\fIExtrude the edited object. \fP"
.ti -1c
.RI "void \fBmerge\fP (GLuint, GLuint)"
.br
.RI "\fIMerge two objects. \fP"
.ti -1c
.RI "void \fBinsert_plane\fP (GLdouble x, GLdouble y)"
.br
.RI "\fIInsert a plane. \fP"
.ti -1c
.RI "void \fBinsert_cube\fP (GLdouble side)"
.br
.RI "\fIInsert a cube. \fP"
.ti -1c
.RI "void \fBinsert_sphere\fP (GLdouble radius)"
.br
.RI "\fIInsert sphere. \fP"
.ti -1c
.RI "void \fBinsert_pyramid\fP (GLuint base_side_n, GLdouble base_side, GLdouble height)"
.br
.RI "\fIInsert pyramid. \fP"
.ti -1c
.RI "void \fBinsert_monkey\fP ()"
.br
.RI "\fIInsert monkey. \fP"
.ti -1c
.RI "void \fBinsert_teapot\fP ()"
.br
.RI "\fIInsert teapot. \fP"
.ti -1c
.RI "void \fBdraw\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP 
Definition at line 26 of file Scene.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "Scene::Scene (\fBCamera\fP * cam)"
.PP
Definition at line 13 of file Scene.cpp.
.SS "Scene::~Scene ()"
.PP
Definition at line 18 of file Scene.cpp.
.SH "Member Function Documentation"
.PP 
.SS "GLuint Scene::add_object (\fBObject3D\fP * o)"
.PP
Add a new object to scene. 
.PP
\fBParameters:\fP
.RS 4
\fIo\fP : new object 
.RE
.PP
\fBReturns:\fP
.RS 4
: index of the new object 
.RE
.PP

.PP
Definition at line 23 of file Scene.cpp.
.SS "void Scene::delete_object (GLuint n)"
.PP
Delete object n from scene. 
.PP
\fBParameters:\fP
.RS 4
\fIn\fP : index of the object to delete 
.RE
.PP

.PP
Definition at line 55 of file Scene.cpp.
.SS "void Scene::deselect_all ()"
.PP
Deselect all objects. 
.PP
Definition at line 69 of file Scene.cpp.
.SS "void Scene::deselect_object (GLuint n)"
.PP
Deselect n'th object. 
.PP
\fBParameters:\fP
.RS 4
\fIn\fP : index of the object in vector 
.RE
.PP

.PP
Definition at line 100 of file Scene.cpp.
.SS "void Scene::dont_edit ()"
.PP
Dont edit any object 
.PP
Definition at line 156 of file Scene.cpp.
.SS "void Scene::dont_edit_face ()"
.PP
Dont edit the edited face 
.PP
Definition at line 168 of file Scene.cpp.
.SS "void Scene::draw ()"
.PP
Draw scene 
.PP
Definition at line 226 of file Scene.cpp.
.SS "\fBTriangle\fP * Scene::edit_face (GLuint n_obj, GLuint n_triang)"
.PP
Edit a face of an object. 
.PP
\fBParameters:\fP
.RS 4
\fIn_obj\fP : number of the object 
.br
\fIn_triang\fP : number of the triang of the object 
.RE
.PP
\fBReturns:\fP
.RS 4
: pointer to the n_triang'th triangle 
.RE
.PP

.PP
Definition at line 114 of file Scene.cpp.
.SS "GLuint Scene::edit_object (GLuint n)"
.PP
Edit n'th object. 
.PP
\fBParameters:\fP
.RS 4
\fIn\fP : index of the object 
.RE
.PP

.PP
Definition at line 146 of file Scene.cpp.
.SS "void Scene::extrude (\fBTriangle\fP * t, GLdouble dist)"
.PP
Extrude the edited object. 
.PP
\fBParameters:\fP
.RS 4
\fIt\fP : one of the triangles of the face to extrude 
.br
\fIdist\fP : distance to extrude, sign means direction 
.RE
.PP

.PP
Definition at line 208 of file Scene.cpp.
.SS "\fBCamera\fP * Scene::get_cam ()"
.PP
Get the \fBCamera\fP. 
.PP
Definition at line 36 of file Scene.cpp.
.SS "GLuint Scene::get_n_selected_objects ()"
.PP
Get number of selected objects. 
.PP
Definition at line 125 of file Scene.cpp.
.SS "vector< \fBObject3D\fP * > Scene::get_objects ()"
.PP
Get the objects. 
.PP
Definition at line 30 of file Scene.cpp.
.SS "vector< GLuint > Scene::get_selected_objects ()"
.PP
Get the selected objects indexes. 
.PP
Definition at line 135 of file Scene.cpp.
.SS "\fBTState\fP Scene::get_state ()"
.PP
Get the operation mode. 
.PP
Definition at line 49 of file Scene.cpp.
.SS "\fBTState\fP Scene::get_state_i (GLuint n)"
.PP
State of i-object. 
.PP
\fBReturns:\fP
.RS 4
State of the object 
.RE
.PP

.PP
Definition at line 108 of file Scene.cpp.
.SS "void Scene::importar (char * ruta)"
.PP
.SS "void Scene::insert_cube (GLdouble side)"
.PP
Insert a cube. 
.PP
\fBParameters:\fP
.RS 4
\fIside\fP : length of the sides 
.RE
.PP

.PP
Definition at line 245 of file Scene.cpp.
.SS "void Scene::insert_monkey ()"
.PP
Insert monkey. 
.PP
Definition at line 266 of file Scene.cpp.
.SS "void Scene::insert_plane (GLdouble x, GLdouble y)"
.PP
Insert a plane. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP : length 
.br
\fIy\fP : anchor 
.RE
.PP

.PP
Definition at line 238 of file Scene.cpp.
.SS "void Scene::insert_pyramid (GLuint base_side_n, GLdouble base_side, GLdouble height)"
.PP
Insert pyramid. 
.PP
\fBParameters:\fP
.RS 4
\fIbase_side_n\fP : number of sides of the base 
.br
\fIbase_side\fP : length of base sides 
.br
\fIheigth\fP : heigth of the pyramid 
.RE
.PP

.PP
Definition at line 259 of file Scene.cpp.
.SS "void Scene::insert_sphere (GLdouble radius)"
.PP
Insert sphere. 
.PP
\fBParameters:\fP
.RS 4
\fIradius\fP : radius of the sphere 
.RE
.PP

.PP
Definition at line 252 of file Scene.cpp.
.SS "void Scene::insert_teapot ()"
.PP
Insert teapot. 
.PP
Definition at line 273 of file Scene.cpp.
.SS "void Scene::merge (GLuint a, GLuint b)"
.PP
Merge two objects. 
.PP
\fBParameters:\fP
.RS 4
\fIa,:\fP descriptor of the first object 
.br
\fIb,:\fP descriptor of the second object 
.RE
.PP

.PP
Definition at line 219 of file Scene.cpp.
.SS "void Scene::move (\fBVertex3D\fP pos)"
.PP
Move selected objects to determined position. 
.PP
\fBParameters:\fP
.RS 4
\fIpos\fP : new position of the center of mass 
.RE
.PP

.PP
Definition at line 184 of file Scene.cpp.
.SS "void Scene::rotate (GLdouble degree, \fBTAxis\fP axis)"
.PP
Rotate selected objects. 
.PP
\fBParameters:\fP
.RS 4
\fIdegree\fP : degrees to rotate 
.br
\fIaxis\fP : axis to rotate around 
.RE
.PP

.PP
Definition at line 200 of file Scene.cpp.
.SS "void Scene::scale (GLdouble factor, \fBTAxis\fP axis)"
.PP
Scale selected objects. 
.PP
\fBParameters:\fP
.RS 4
\fIfactor\fP : scale factor 
.br
\fIaxis\fP : scale the object restricted to axis 
.RE
.PP

.PP
Definition at line 192 of file Scene.cpp.
.SS "GLuint Scene::select_all ()"
.PP
Select all objects. 
.PP
\fBReturns:\fP
.RS 4
number of objects selected 
.RE
.PP

.PP
Definition at line 61 of file Scene.cpp.
.SS "GLuint Scene::select_inverse ()"
.PP
Make inverse selection. 
.PP
\fBReturns:\fP
.RS 4
number of objects selected 
.RE
.PP

.PP
Definition at line 76 of file Scene.cpp.
.SS "GLuint Scene::select_object (GLuint n)"
.PP
Select n'th object. 
.PP
\fBParameters:\fP
.RS 4
\fIn\fP : index of the object in vector 
.RE
.PP
\fBReturns:\fP
.RS 4
: 0 if exists, 1 if doesnt 
.RE
.PP

.PP
Definition at line 91 of file Scene.cpp.
.SS "void Scene::set_state (\fBTState\fP st)"
.PP
Set the operation mode. 
.PP
Definition at line 43 of file Scene.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for Computer Graphics from the source code.
